CC := g++
RM := rm -rf
TARGET := ../../bin/controller

OBJS := main.o controller.o message.o mapobject.o staticobject.o boulder.o crater.o home.o martian.o point.o position.o

compile: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o "$@" $(OBJS)

%.o: %cpp
	$(CC) -c "$<" -o "$@"

clean:
	$(RM) $(TARGET) $(OBJS) || true
